<div class="col-lg-8">
    <div class="panel panel-default">
        <div class="panel-heading">
            DATA IKLAN
        </div>
        <!-- /.panel-heading -->
        <div class="panel-body">
            <div class="table-responsive">
                <table class="table table-hover">
                    <thead>
                        <tr>
                            <th>No</th>
                            <th>Kategori</th>
                            <th>Tanggal</th>
                            <th>Konten</th>
                            <th>Kontak</th>
                            <th>Harga</th>
                            <th>Kondisi</th>
                            <th>User ID</th>
                            <th>Action</th>
                        </tr>
                    </thead>
                    <tbody>
                        <?php foreach($data as $row){ ?>
                        <tr>
                            <td><?php echo $row->ID_Iklan;?></td>
                            <td><?php echo $row->Nama;?></td>
                            <td><?php echo $row->Tanggal;?></td>
                            <td><?php echo $row->Konten;?></td>
                            <td><?php echo $row->Kontak;?></td>
                            <td><?php echo $row->Harga;?></td>
                            <td><?php echo $row->Kondisi;?></td>
                            <td><?php echo $row->first_name.' '.$row->last_name;?></td>
                            <td><a href="<?php echo site_url("jualbeli/data_edit_iklan/". $row->ID_Iklan); ?>">EDIT</a></td>
                        </tr>
                        <?php }?>
                    </tbody>
                </table>
            </div>
        <!-- /.table-responsive -->
        </div>
    <!-- /.panel-body -->
    </div>
<!-- /.panel -->
</div>  